package com.cat.state.after;

/**
 * @author cat
 * @version 2025/5/27 14:48
 * @description
 * @since JDK17
 */

public class RunningState extends LiftState {
    @Override
    public void open() {
    }

    @Override
    public void close() {
    }

    @Override
    public void run() {
        System.out.println("电梯开始运行");
    }

    @Override
    public void stop() {
        super.context.setLiftState(Context.stoppingState);
        super.context.stop();
    }
}
